package com.akkainaction.mailbox.custommailbox;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.akkainaction.mailbox.custommailbox.actor.BusinessActor2;
import com.typesafe.config.ConfigFactory;

public class TestBusinessActor2 {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys", ConfigFactory.load("custom-mailbox2.conf"));
        ActorRef businessActor2 = system.actorOf(Props.create(BusinessActor2.class), "businessActor2");
        businessActor2.tell("李四", ActorRef.noSender());
    }
}
